import {requestGet, requestPatch} from "./request";


export async function getCollectorList({page = 1, pageSize = 10, name = "", type = "", channelId}) {
  return await requestGet('/collector/', {
    page: page,
    page_size: pageSize,
    name,
    collector_type: type,
    channels: channelId
  })
}

export async function updateCollector(collector) {
  return await requestPatch('/collector/' + collector.id, collector)
}
